package com.tbit.uqbike.client.service;

import com.tbit.uqbike.client.pojo.newEntity.RuleRidePhotolog;
import com.tbit.uqbike.client.pojo.newEntity.RuleRidelog;

import java.util.List;
import java.util.Map;

/**
 * @Author: chen
 * @Description:
 * @Date: 创建于 14:56 2022/7/12
 */
public interface RuleRidelogService {

    /**
     * 新增
     *
     * @param ruleRidelog
     */
    void edit(RuleRidelog ruleRidelog);

    /**
     * 查询
     *
     * @param userId
     * @return
     */
    List<RuleRidelog> query(Integer userId);

    /**
     * 查询不文明骑行图片
     *
     * @param rideId
     * @return
     */
    List<RuleRidePhotolog> queryPhoto(Integer rideId);

    /**
     * 通过主键id插叙
     *
     * @param rideId
     * @param mapType
     * @return
     */
    RuleRidelog getByRideId(Map<String, Object> map, Integer rideId, Integer mapType);

    /**
     * 查询不文明骑行订单详情
     *
     * @param map
     * @param orderNO
     */
    List<RuleRidelog> queryRuleRideLog(Map<String, Object> map, String orderNO, Integer mapType);

    /**
     * 新增
     *
     * @param machineNO
     */
    int insert(String machineNO, String remark);
}
